FROM registry.yuyou100.com/java:8u171


ADD ./apache-tomcat-8.5.32.tar.gz /usr/local

ENV CATALINA_HOME /usr/local/apache-tomcat-8.5.32
ADD server.xml ${CATALINA_HOME}/conf
ENV PATH=${CATALINA_HOME}/bin:$PATH

RUN rm -rf ${CATALINA_HOME}/webapps/*

ENV CATALINA_OPTS="-Xms2g -Xmx2g" 
EXPOSE 8080
CMD ["catalina.sh", "run"]


